1. /* slmshort.cpp by K.Tsuru */
  2. // function ID = 206 DRADIX, BRADIX
  3. /**********************
  4. SLong class
  5. set a short value v
  6. within two figures
  7. ***********************/
  8. #ifndef SN_H
  9. #include "sn.h"
  10. #endif
  11. void SLong::SetShort(short v){
  12. //When sign == UNDECIDED Sign() yields an error.
  13. if(RawSign()) SetZero();
  14. if(v == 0) return;
  15. SetSign(v);
  16. fType aV = (fType)abs(v), rdx = Radix();
  17. if(aV < rdx) figure[0] = aV;
  18. else {
  19. if((figure[0] = aV%rdx) == 0) aTail = 1u;
  20. figure[1] = aV/rdx; aHead = 1u;
  21. }
  22. }

slmshort.cpp : last modifiled at 2017/03/13 14:32:01(532 bytes)
created at 2017/10/07 10:26:49
The creation time of this html file is 2017/11/09 14:52:03 (Thu Nov 09 14:52:03 2017).